Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New option for simplemodal #1

Closed
wants to merge 1 commit into from

Conversation

nicholasbs
Copy link

Hi,

I wanted to allow any keypress to close my dialog, so I added a new option (anykeyClose, false by default) to simplemodal.

Thanks for an awesome library! It's just what I was looking for and only took a minute to get working.

Best,
-Nick

@ericmmartin
Copy link
Owner

Thanks Nicholas. I'm not sure that there are enough situations to warrant this change - do you have a use case?

@nicholasbs
Copy link
Author

My use case was for Hackruiter.com. If you press ? on the frontpage, you'll get a modal dialog with keyboard shortcuts, and I wanted any key press to close the help window.

In general, I think any time you want to have modal display of info/help but make it hard for the user to get caught in it, having any key to close is useful. I've definitely seen other sites that have used this behavior on, but I can't think of them off the top of my head.

Best,
-Nick

@JohnSThomas
Copy link
Contributor

Closing, out dated and as @ericmmartin stated, there aren't enough use cases for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants